<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <div class="box">
      <button type="submit" id="btn">获取猫眼数据</button>
    </div>
    <script>
      var btn=document.querySelector('#btn')
      btn.onclick=function(){
        fetch('/api/hotList').then(res=>res.json()).then(res=>{
            console.log('res',res);
        })
      }
    </script>
  </body>
</html>
